/*
 * Copyright (C) 2017 yixun All Rights Reserved.
 * 
 * OperationLog.java
 */
package com.yixun.qfbao.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * [文件名称]<br>
 * OperationLog.java<br>
 * <br>
 * [文件描述]<br>
 * 用户操作日志表 pojo bean<br>
 * <br>
 * [修改记录]<br>
 * 2017-08-07 16:20:41 创建 陶俊代码生成器<br>
 * 
 * @author 陶俊代码生成器
 * @version 1.00
 */
@Data
@Table(name = "tm_operation_log")
public class OperationLog implements Serializable{
    /**
	 * 序列化UID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 *id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	/**
	 *操作对象
	 */
	@Column(name = "opt_target")
	private String optTarget;
	/**
	 *操作对象id
	 */
	@Column(name = "opt_target_id")
	private Long optTargetId;
	/**
	 *操作类型
	 */
	@Column(name = "opt_type")
	private String optType;
	/**
	 *操作时间
	 */
	@Column(name = "opt_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date optTime;
	/**
	 *操作人
	 */
	@Column(name = "opt_user")
	private Long optUser;
	
	/**
	 *操作人
	 */
	@Column(name = "system_id")
	private String systemId;

}
